package com.baiyu.total;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class OtherActivity extends AppCompatActivity {
    Intent intent;
    TextView textView;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.other);
        textView=findViewById(R.id.result);
        intent=getIntent();

        String str=intent.getStringExtra("jieguo");
        boolean whatPay=intent.getBooleanExtra("pay",true);

        String str1=whatPay ? "支付方式:微信支付":"支付方式:支付宝支付";
        textView.setText(str+str1);


    }
}
